<?php
	include("includes/connect_db.php");

	$sql = "SELECT * FROM tb_kontak";
	$query = mysql_query($sql);
	while ($kontak = mysql_fetch_array($query)) {
		$nama_rincian = $kontak['nama_kontak']." - Mobile 1";
		$sql_insert = "UPDATE tb_kontak_rincian SET id_kontak = '$kontak[id_kontak]', rincian = 1, nama_rincian = '$nama_rincian', no_hp = '$kontak[no_hp]' WHERE id_kontak = '$kontak[id_kontak]'";
		$query_insert = mysql_query($sql_insert);
	}
?>